/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ADPCompliance.Impl;

import za.ac.cput.ADPCompliance.Rectangle;

/**
 *
 * @author Leo
 */
public class RectangleImpl implements Rectangle {
    
   protected int length;
   protected int breadth;
   protected int area;
    
    public RectangleImpl(){}
 

    @Override
    public void setLength(int l) {
          this.length =l;
    }

    @Override
    public void setBreadth(int b) {
        this.breadth = b;
    }

    @Override
    public int getLength() {
        return this.length;
    }

    @Override
    public int getBreadth() {
       return this.breadth;
    }
    @Override
    public int area(int l, int b) {
      
        area= l* b;
        return area;
    }
    
}
